<!DOCTYPE html>
<html lang="en">

    <head>
        <meta charset="UTF-8">
        <title>垃圾分类数据</title>
        <link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
        <style type="text/css">
            .cardBox {
                max-width: 800px;
                box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
                text-align: center;
                float: center;
                margin-right: 10px;
                padding: 5px;
                padding-top: 15px;
                height: auto;
                margin:0 auto;    
            }

            .headerBox {
                color: #fff;
                padding: 10px;
                font-size: 15px;
                height: 60px;
            }

            .bodyBox {
                padding: 10px;
            }

            .bodyBox p {
                margin-left: 5px;
            }
        </style>
    </head>

    <body>
        <!-- <p>可回收垃圾:{{Recyclable.data}}</p>
        <p>其他垃圾:{{Residual.data}}</p>
        <p>有害垃圾:{{Hazardous.data}}</p>
        <p> 厨余垃圾:{{Food.data}}</p> -->

        <div>
            <div class="cardBox">
                <div class="headerBox" style="background-color:blue">
                    <p>
                        <a title="查看详情" style="cursor: pointer; color:white" onclick="viewXmInfo('${var.OMP_XM_ID}');">可回收物</a>
                    </p>
                </div>
                <div class="bodyBox">
                    <p>运行状态：
                        <a href="javascript:void(0)" class="label label-success" style="border-radius: .25em;">启动</a>
                    </p>
                    {% if Recyclable.data <= 30 %}
                        <p>异常状态：<span style="color:red">桶满</span></p>
                    {% else %}
                        <p>异常状态：<span style="color:green">无异常</span></p>

                    {% endif %}

                    <p>剩余存量:{{Recyclable.data}}%</p>
                </div>
            </div>

            <div class="cardBox">
                <div class="headerBox" style="background-color:darkgray;">
                    <p>其他垃圾</p>
                </div>
                <div class="bodyBox">
                    <p>运行状态：
                        <a href="javascript:void(0)" class="label label-success" style="border-radius: .25em;">启动</a>
                    </p>
                    {% if Residual.data <= 30 %}
                        <p>异常状态：<span style="color:red">桶满</span></p>
                    {% else %}
                        <p>异常状态：<span style="color:green">无异常</span></p>

                    {% endif %}
                    <p>剩余存量:{{Residual.data}}%</p>
                </div>
            </div>

            <div class="cardBox">
                <div class="headerBox" style="background-color: red;">
                    <p>有害垃圾</p>
                </div>
                <div class="bodyBox">
                    <p>运行状态:
                        <a href="javascript:void(0)" class="label label-success" style="border-radius: .25em;">启动</a>
                    </p>
                    {% if Hazardous.data <= 30 %}
                        <p>异常状态：<span style="color:red">桶满</span></p>
                    {% else %}
                        <p>异常状态：<span style="color:green">无异常</span></p>

                    {% endif %}

                    <p>剩余存量:{{Hazardous.data}}%</p>
                </div>
            </div>

            <div class="cardBox">
                <div class="headerBox" style="background-color: green;">
                    <p>厨余垃圾</p>
                </div>
                <div class="bodyBox">

                    <p>运行状态：
                        <a href="javascript:void(0)" class="label label-success" style="border-radius: .25em;">启动</a>
                    </p>
                    {% if Food.data <= 30 %}
                        <p>异常状态：<span style="color:red">桶满</span></p>
                    {% else %}
                        <p>异常状态：<span style="color:green">无异常</span></p>

                    {% endif %}

                    <p>剩余存量:{{Food.data}}%</p>

                </div>
            </div>



    </body>

</html>